﻿using System;

namespace ZilLion.Core.Unities.Config
{
    public interface IAppConfigProvider
    {
        /// <summary>
        ///     刷新
        /// </summary>
        Action RefreshAction { get; set; }

        /// <summary>
        ///     取值
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        string GetAppSetting(string key);

        /// <summary>
        ///     存值
        /// </summary>

        Action<string, string> SaveAppSettingAction { get; set; }
    }
}